<%-- 
    Document   : viewItem
    Created on : Apr 30, 2011, 8:48:38 PM
    Author     : christophe
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="/WEB-INF/jspf/tagImports.jspf" %>


<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>View Item</title>
    </head>
    <tags:menu />
    <div id="content">
        <tags:body>
          <h2>Item - Details</h2>
            <c:if test="${not empty param.created}">
                <div class="createdMessage"> Successfully Put Your <b>${ItemForm.name}</b> Up For Sale! </div>
            </c:if>
            <c:url var="addToCartUrl" value="/user/addItemToCart.do">
                <c:param name="itemID" value="${ItemForm.itemID}" />
            </c:url>
            <tags:textDisplay labelName="Name" textValue="${ItemForm.name}" />
            <tags:textDisplay labelName="Description" textValue="${ItemForm.description}" />
            <tags:textDisplay labelName="Sale Price" textValue="${ItemForm.salePrice}" />
            <tags:textDisplay labelName="Category" textValue="${ItemForm.itemCategory.name}" />
            <a href="${addToCartUrl}">Add To Cart </a>
        </tags:body>
    </div>
    <div id = "footer">
        <span>
            &nbsp;All rights reserved Garage Sale 2011 | Legal | Privacy Policy
        </span>
        <br><br>
        <img alt="" src="../images/b1.gif">
        <img alt="" src="../images/b2.gif" style="margin:0px 5px 0px 5px">
        <img alt="" src="../images/b3.gif">
    </div>
</html:html>
